/**
 * Copyright © 2020 易久批信息技术有限公司. All rights reserved.
 */
package com.dysm.proxy.statics;

/**
 *
 * @author xiay
 * @since 2020/12/10 9:25 下午
 */
public class ProxyStar implements Star {

    private Star realStar;

    public ProxyStar(Star realStar) {
        this.realStar = realStar;
    }

    @Override
    public void sing() {
        before();
        realStar.sing();
        after();
    }

    public void before() {
        System.out.println("演唱会开始！");
    }

    public void after() {
        System.out.println("演唱会结束！");
    }
}
